package cn.edu.ren.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @PackageName: cn.edu.ren.config
 * @ClassName: EurekaSecuritConfig02
 * @Description:
 * @author: RZS
 * @date: 2021/6/20  19:21
 */
@Configuration
@EnableWebSecurity
public class EurekaSecuritConfig02 extends WebSecurityConfigurerAdapter {
    // 重写configure方法
    protected void configure(HttpSecurity http) throws Exception {
        // 关闭csrf
        // 支持httpBasic
        http.csrf().disable().httpBasic();
    }
}
